<?php

namespace core\lib;

use core\lib\conf;

class log
{

    static $class;

    // 确定日志储存方式
    // 写日志
    public static function init()
    {
        $drive = conf::get('DRIVE','log');
        $class = '\core\lib\drive\log\\'.$drive;
        self::$class = new $class;
    }

    public static function log($name,$file='log')
    {
        self::$class->log($name,$file);
    }
    

}